//package model.trader;
//
//import java.util.List;
//
//import model.market.MarketInformation;
//import model.market.MarketManager;
//import model.stats.RegressionCalc.RegressionResult;
//import model.trader.portfolio.PortfolioManagementStrategy;
//import model.trader.trade.ImmediateExecutionStrategy;
//import model.trader.trade.LiquidityAdjustingExecutionStrategy;
//import model.trader.trade.TradeExecutionStrategy;
//
//public class CapmAlphaHunter extends BaseTrader{
//
//	PortfolioManagementStrategy portfolioStrategy;//AMTEMPXX: = new SingleIndexModelPortfolioManager();
//	public PortfolioManagementStrategy getPortfolioStrategy() {
//		return portfolioStrategy;
//	}
//
//	
//	public double[] getPreferences(MarketManager market,
//			MarketInformation marketInfo) {
//		
//		// AMXX Auto-generated method stub
//		List<RegressionResult>[] assetCapmResults = marketInfo.getAssetCapmResults();
//		double[] alphas = new double[assetCapmResults.length];
//		//AMXX: temp to avoid feedback..AMXX: waste of time because it rebalances straight away amdo working here.
//		if(market.getPeriod()%5==0){
//			for(int i=0;i<assetCapmResults.length;i++){
//				alphas[i]=assetCapmResults[i].get(assetCapmResults[i].size()-1).getAlpha();
//				if(Double.isNaN(alphas[i])){
//					alphas[i]=0;
//				}
//			}
//		}
//		//AM: no need to manipulate because portfolio manager optimises for unadjusted.
//		return alphas;
//		
//	}
//
//	TradeExecutionStrategy tradeStrategy = new ImmediateExecutionStrategy();//AMXX: temp new LiquidityAdjustingExecutionStrategy();
//	public TradeExecutionStrategy getTradeStrategy() {
//		return tradeStrategy;
//	}
//}
